package com.bjtu.literatureclient.service.city.impl;

import com.bjtu.literatureclient.dao.city.ICityStateDao;
import com.bjtu.literatureclient.domain.base.BaseModel;
import com.bjtu.literatureclient.domain.city.CityState;
import com.bjtu.literatureclient.service.city.ICityStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cityStateService")
public class CityStateServiceImpl implements ICityStateService {

    @Autowired
    private ICityStateDao cityStateDao;

    @Override
    public List<CityState> query(BaseModel baseModel) {
        return this.cityStateDao.query(baseModel);
    }

    @Override
    public int update(BaseModel baseModel) {
        return this.cityStateDao.update(baseModel);
    }

    @Override
    public int insert(BaseModel baseModel) {
        return this.cityStateDao.insert(baseModel);
    }

	@Override
	public List<CityState> queryState(BaseModel baseModel) {
		// TODO Auto-generated method stub
		return this.cityStateDao.queryState(baseModel);
	}

	@Override
	public List<CityState> queryCity(BaseModel baseModel) {
		// TODO Auto-generated method stub
		return this.cityStateDao.queryCity(baseModel);
	}
}
